Skip to content

Conversation

@SplittyDev
Copy link
Contributor

@SplittyDev SplittyDev commented Apr 7, 2025

Context

Previously, the browser tool could only click on elements, but not simply move to or hover over them. This PR fixes that by providing a dedicated hover action.

Implementation

Interestingly, the hover action was already implemented for the most part, and was simply missing in the tool description and parameter handling. Took a very small amount of code to implement, and works perfectly.

Screenshots

This screenshot shows the hover action, where Claude hovers over the button without clicking it.
Code 2025-04-07 14 51 00

How to Test

  1. Make a small website with any element that has a hover effect
  2. Tell Roo Code to open the website and hover over the element

Get in Touch

No Discord, but you can contact me under [email protected], or preferably right here.


Important

Adds hover action to browser tool, allowing cursor movement to specific coordinates without clicking, by updating browserActionTool and browser-action.ts.

  • Behavior:
    • Adds hover action to browserActionTool in browserActionTool.ts, allowing cursor movement to specific coordinates without clicking.
    • Updates getBrowserActionDescription in browser-action.ts to include hover action in tool description.
  • Parameters:
    • Extends coordinate parameter usage to hover action in browser-action.ts.
  • Misc:
    • Updates switch cases in browserActionTool to handle hover action.

This description was created by Ellipsis for 273540a. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Apr 7, 2025

⚠️ No Changeset found

Latest commit: bee2207

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Apr 7, 2025
@SplittyDev SplittyDev changed the title Browser Tool: Implement hover feat(browserTool): Implement hover action Apr 7, 2025
Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 7, 2025
@mrubens mrubens merged commit f5a4b42 into RooCodeInc:main Apr 7, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants